
// If  NOT INTERACTIVE then app doesn't require user response from serial terminal, and only send one set of 10 characters


//Specify teh COM port to uise
#define DEFAULT_COMPORT   L"$device\\COM1"
#define DEFAULT_COMPORTNO 1
#define MESSAGE "The quick brown fox jumps over the lazy dog.ABCDEFGHIJKLMabcdefghijklm0123456789"
#define MAX_PACKET_SIZE (strlen(MESSAGE))
#define DEFAULT_BAUDRATE 115200
#define DEFAULT_TESTTIME INFINITE
#define DEFAULT_PACKETSIZE 8
#define DEFAULT_WRITETIMEOUT 3333 //INFINITE
#define DEFAULT_READTIMEOUT 3333   //INFINITE
#define DEFAULT_ABORT_ON_ERROR FALSE
#define DEFAULT_READAUTOMODE FALSE
#define DEFAULT_DISPLAYPERIOD 5000

#define PRINTLEVEL 2

#define nl "\r\n"

#define NL L""


//App functions
HANDLE SerialOpen(LPCWSTR port, LONG  mode);
void SerialClose(LPCWSTR port, HANDLE hPort);
BOOL SerialConfigure(LPCWSTR port, HANDLE hPort);
BOOL SetTimeouts(LPCWSTR port, HANDLE hPort);
BOOL SerialWrite(BYTE* Byte, DWORD len);
BOOL SerialRead(DWORD);
BOOL WriteMessage( DWORD);